package com.token.controller;

import com.token.service.ZipService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * @auther: henriy
 * @Date: 2023/12/4
 */
@RestController
@Api(tags = "zip压缩接口类")
@RequestMapping("/zip/info")
public class ZipController {

    @Resource
    private ZipService zipService;

    @PostMapping("/downLoadZip")
    @ApiOperation("zip压缩包导出")
    public void downLoadZip(HttpServletResponse response) {
        zipService.downLoadZip(response);
    }


}
